# -*- coding: utf-8 -*-
# @Time    : 2020/3/17 下午7:50
# @Author  : lilong


# Version 2.0
# ============================================
class MyClass:
    pass


m = MyClass()
print(type(MyClass))
print(type(m))
print()

print(isinstance(m, MyClass))
print(isinstance(MyClass, type))
print("##########################")

# MetaClass
# ==================================================
class CustomMetaclass(type):
    pass


class CustomClass(metaclass=CustomMetaclass):
    pass


print(type(object))
print(type(type))
print()

obj = CustomClass()
print(type(CustomClass))
print(type(obj))

print()
print(isinstance(obj, CustomClass))
print(isinstance(obj, object))
